package com.turing.post.datatranferpmbs.util;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 * 实体表 -- Pmbs.MchAddTradSummary
 * 
 * @author 杨新斌
 * 
 * @version 1.0.0
 * @since 2009-08-31
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "MchAddTradSummary")
@IdClass(PMBSMchAddTradSummary.class)
public class PMBSMchAddTradSummary implements Serializable {

	/**
	 * 商户号
	 */
	@Id
	@Column(name = "MerchantNo", nullable = false)
	private String MerchantNo;

	public String getMerchantNo() {
		return MerchantNo;
	}

	public void setMerchantNo(String merchantNo) {
		MerchantNo = merchantNo;
	}

	/**
	 * 帐务日期
	 */
	@Id
	@Column(name = "TranDate", nullable = false)
	private java.util.Date TranDate;

	public java.util.Date getTranDate() {
		return TranDate;
	}

	public void setTranDate(java.util.Date tranDate) {
		TranDate = tranDate;
	}

	/**
	 * 流水号
	 */
	@Id
	@Column(name = "TranSeqNo", nullable = false)
	private String TranSeqNo;

	public String getTranSeqNo() {
		return TranSeqNo;
	}

	public void setTranSeqNo(String tranSeqNo) {
		TranSeqNo = tranSeqNo;
	}

	/**
	 * 商户分支机构编号
	 */
	@Column(name = "MrchBrchNo", nullable = true)
	private String MrchBrchNo;
	
	public String getMrchBrchNo() {
		return MrchBrchNo;
	}

	public void setMrchBrchNo(String mrchBrchNo) {
		MrchBrchNo = mrchBrchNo;
	}

	/**
	 * 商户分支机构名称
	 */
	@Column(name = "MrchBrchName", nullable = true)
	private String MrchBrchName;
	
	public String getMrchBrchName() {
		return MrchBrchName;
	}

	public void setMrchBrchName(String mrchBrchName) {
		MrchBrchName = mrchBrchName;
	}

	/**
	 * 商户操作员编号
	 */
	@Column(name = "MrchTellerNo", nullable = true)
	private String MrchTellerNo;
	
	
	public String getMrchTellerNo() {
		return MrchTellerNo;
	}

	public void setMrchTellerNo(String mrchTellerNo) {
		MrchTellerNo = mrchTellerNo;
	}

	/**
	 * 商户操作员名称
	 */
	@Column(name = "MrchTellerName", nullable = true)
	private String MrchTellerName;

	public String getMrchTellerName() {
		return MrchTellerName;
	}

	public void setMrchTellerName(String mrchTellerName) {
		MrchTellerName = mrchTellerName;
	}

	/**
	 * 商户账单明细条数
	 */
	@Column(name = "MrchProdDetailNum", nullable = true)
	private Integer MrchProdDetailNum;
	
	public Integer getMrchProdDetailNum() {
		return MrchProdDetailNum;
	}

	public void setMrchProdDetailNum(Integer mrchProdDetailNum) {
		MrchProdDetailNum = mrchProdDetailNum;
	}

	/**
	 * 现金额
	 */
	@Column(name = "MrchCash", nullable = true)
	private BigInteger MrchCash;
	
	public BigInteger getMrchCash() {
		return MrchCash;
	}

	public void setMrchCash(BigInteger mrchCash) {
		MrchCash = mrchCash;
	}

	/**
	 * 卡金额
	 */
	@Column(name = "MrchAmount", nullable = true)
	private BigInteger MrchAmount;
	
	public BigInteger getMrchAmount() {
		return MrchAmount;
	}

	public void setMrchAmount(BigInteger mrchAmount) {
		MrchAmount = mrchAmount;
	}

	public boolean equals(Object obj) {
		if (obj == this)
			return true;

		if (!(obj instanceof PMBSMchAddTradSummary))
			return false;

		PMBSMchAddTradSummary pk = (PMBSMchAddTradSummary) obj;

		if (!MerchantNo.equals(pk.getMerchantNo()))
			return false;

		if (!TranDate.equals(pk.getTranDate()))
			return false;

		if (!TranSeqNo.equals(pk.getTranSeqNo()))
			return false;

		return true;
	}

	public int hashCode() {
		return MerchantNo.hashCode() + TranDate.hashCode() + TranSeqNo.hashCode();
	}

	/**
	 * Default constructor.
	 */
	public PMBSMchAddTradSummary() {
		// TODO Auto-generated constructor stub
		super();
	}
}